# packcc-llvmir
  
This is a C parser to read the llvm compiler intermedaite language in the ll files  
  
This can be used to check source for issues  
This can be used to generate graph data  
This can be used to interface to other compiler then llvm  
This can be used to rewrite the ir  
This can be used to create a C compiler written in C or other language instead of C++  
This can be used to generate source code data and interface to a programming ide  
This can be used for sourcecode translations  
This can be used as a pure C alternative to the C++ code from clang  
This can be edited to use with pegjs to create a javascript llvm ir parser  
  
This is GNU GPL Free software and tested with clang version 8 and needs updates with new llvm versions  
  
The t.ll file is a textual llvm ir test file  
To generate llvm ll file:  
clang -O0 -emit-llvm test.c -c -o test.bc  
llvm-dis test.bc -o test.ll  
  
Or:
clang -S -emit-llvm test.c -o test.bc  
  
